{layout name="public/layout" /}
{include file='yxnavbar'}


<div class="main">

    {include file='../../plugin/weike/template/web/gift/navbar'}
    <div class="tab-content">
        <div class="panel panel-default" style="margin-top: 15px;">
            <div class="panel-body table-responsive">
                <table class="table table-hover">
                    <thead class="navbar-inner">
                    <tr>
                        <th style="width: 50px">序号</th>
                        <th style="width: 100px">奖品名称</th>
                        <th style="width: 100px">金额</th>
                        <th style="width: 100px">图标</th>
                        <th style="width: 100px">状态</th>
                        <th style="width: 100px">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $list $index $item}
                    <tr>
                        <td>{php echo $index+1;}</td>
                        <td>{$item['title']}</td>
                        <td>
                            {$item['price']}
                        </td>
                        <td>
                            <img src="{$item['icon']}" style="width: 30px;height: 30px;">
                        </td>
                        <td>{php echo $item['status']==1 ?'可用':'已禁用';}</td>
                        <td>
                            <a class="btn btn-primary btn-sm" style="width: 35px"  data-type="edit" href="{php echo createWebUrlPlugin('weike.gift.addgift',array('themeid'=>$themeid,'group_id'=>$group_id,'gift_id'=>$item['id']));}"
                               title="编辑" data-toggle="tooltip" data-placement="top"><i class="fa fa-pencil-square-o"> </i></a>
                        </td>
                    </tr>
                    {/loop}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

{$pager}
<script type="text/javascript">
    $(document).ready(
        function (){
            console.log('js代码');
        }
    );
</script>
